<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use Laravel\Lumen\Routing\Controller as BaseController;

class Controller extends BaseController
{
    protected $request;

    public function __construct(Request $request)
    {
        $this->request = $request;
    }

    public function sendSuccessJson($data = '', $msg = '', $code = 0)
    {
        return response()->json([
            'data' => $data,
            'msg' => $msg,
            'code' => $code
        ]);
    }
}
